const detail = {
  "id": "1",
  "appName": "大黄蜂的身份",
  "orgId": "1",
  "orgName": "奋斗部",
  "provider": "奋斗奋斗",
  "contact": "栖霞山",
  "tel": "18888888888",
  "email": "888888@qq.com",
  "appKey": "fasdfjdskfjdkslf",
  "appSecret": "fdsjkfds",
  "memo": "放到手机放口袋上了飞机都是",
}
const list = [detail]
export default [
  // getModules
  {
    url: '/app/list',
    method: 'get',
    response: ({
      body
    }) => {
      return {
        status: 200,
        data: {
          list: list,
          total: list.length
        }
      }
    }
  },
  {
    url: '/app/list/1',
    method: 'get',
    response: ({
      body
    }) => {
      return {
        status: 200,
        data: detail
      }
    }
  },
  {
    url: '/app/svc/list',
    method: 'get',
    response: ({
      body
    }) => {
      return {
        status: 200,
        data: {
          list: [{
            id: '1',
            appId: "",
            appName: "应用应用",
            svcId: "",
            svcName: "对方的艰苦奋斗接口"
          }],
          total: 1
        }
      }
    }
  },
  {
    url: '/app/perms/detail/1',
    method: 'get',
    response: ({
      body
    }) => {
      return {
        status: 200,
        data: {
          limitPerDay: 2,
          limitPerSecond: 2,
          callInterval: 2
        }
      }
    }
  },
  {
    url: '/datasource',
    method: 'post',
    response: ({
      body
    }) => {
      return {
        status: 201,
        data: {}
      }
    }
  },
]